from fabric import Connection

HOST = "root@101.200.164.61"
REMOTE_PATH = "/root/"

def main():
    conn = Connection("root@101.200.164.61", connect_kwargs = {"password": "HKLhkl1927875814"})
    conn.put(r"C:\Users\kalin\Desktop\many\term3Practice1\JenkinsAutoBuild\whu-erp-latest.tar", REMOTE_PATH)
    conn.run(f'docker load -i {REMOTE_PATH}whu-erp-latest.tar')

if __name__ == '__main__':
    main()
